<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>華信商会(株) 販売管理業務システム</title>
<meta name="renderer" content="webkit">

<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet"
	href="css/datetimepicker/bootstrap-datetimepicker.min.css"
	media="screen" />
</head>
<body>
	<%@include file="common/include.jsp"%>
	<div class="container">
		<div class="row">
			<div class="col-md-12">
				<div class="panel panel-default">
					<div class="panel-heading">
						<div class="row">
							<div class="col-md-6" align="left">
								<font style="font-size: 14px; line-height: 29px;">商品別出庫表作成</font>
							</div>

						</div>
					</div>
					<div class="panel-body">
						<table class="table table-bordered">
							<thead>
								<tr>
									<th style="text-align: center;">商品コード</th>
									<th style="text-align: center;">商品名</th>
									<th style="text-align: center;">受注コード</th>
									<th style="text-align: center;">出庫数量</th>
									<th style="text-align: right">合計出庫数量</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${ list2 }" var="mt">
									<c:forEach items="${ mt.list }" var="mtl" end="0">
										<tr>
											<td style="text-align: center;">${ mtl.shouhinCode }</td>
											<td style="vertical-align: middle; text-align: left;"
												rowspan="${ mt.num }">${ mtl.shouhinMei }</td>
											<td style="text-align: center;">${ mtl.juchuuCode }</td>
											<td style="text-align: center;">${ mtl.sum }</td>
											<td style="vertical-align: middle; text-align: right;"
												rowspan="${ mt.num }">${ mt.uriageSuuryou_sum }</td>
										</tr>
									</c:forEach>

									<c:forEach items="${ mt.list }" var="mtl" begin="1"
										end="${ mt.num }">
										<tr>
											<td style="text-align: center;">${ mtl.shouhinCode }</td>
											<td style="text-align: center;">${ mtl.juchuuCode }</td>
											<td style="text-align: center;">${ mtl.sum }</td>
										</tr>
									</c:forEach>
								</c:forEach>
							</tbody>
						</table>
						
					</div>
				</div>
			</div>
		</div>
	</div>

	<script>
	${message}
	</script>
</body>
	<!-- Body End -->
<%@include file="common/include2.jsp"%>
</html>
